package com.example.brainmemory;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Toast;

public class StartMenu extends Activity implements OnClickListener {
	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.StartMenuButtonStartGame:
			Intent startGameIntent = new Intent(StartMenu.this,
					BrainMemory.class);
			StartMenu.this.startActivity(startGameIntent);
			break;

		case R.id.StartMenuButtonHighscore:
			Toast.makeText(this, "Highscores!", 2).show();
			break;

		case R.id.StartMenuButtonExit:
			finish();
			break;

		default:
			finish();
			break;
		}
	}

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.startmenu);
	}
}
